.city-select-page {
	height: 100vh;
	display: flex;
	flex-direction: column;

	background: #fff;
	border-radius: 26rpx;

	// 导航栏样式
	.navbar {
		height: 44px;
		display: flex;
		align-items: center;
		padding: 0 15px;
		background-color: #fff;
		border-bottom: 1px solid #eee;

		.back-btn {
			width: 24px;
			height: 24px;
			display: flex;
			align-items: center;
			justify-content: center;

			.iconfont {
				font-size: 20px;
				color: #333;
			}

			// 加载状态样式
			.loading-container {
				display: flex;
				justify-content: center;
				align-items: center;
				height: 100%;
				background-color: #f5f5f5;

				.loading-text {
					font-size: 16px;
					color: #666;
				}
			}
		}

		.title {
			flex: 1;
			text-align: center;
			font-size: 16px;
			font-weight: 500;
		}

		.empty-space {
			width: 24px;
		}
	}

	// 已选择区域样式
	.selected-area {
		padding: 15px;
		background-color: #fff;
		display: flex;
		gap: 10px;
		border-bottom: 1px solid #eee;

		.selected-tag {
			padding: 6px 15px;
			background-color: #f5f5f5;
			border-radius: 12rpx;
			font-weight: 400;
			font-size: 26rpx;
			color: #0E1C37;
			white-space: nowrap;

			&.active {
				background-color: #BEFF33;
				color: #0E1C37;
			}
		}
	}

	// 城市容器样式
	.city-container {
		flex: 1;
		display: flex;
		position: relative;
		overflow: hidden;

		// 城市列表样式
		.city-list {
			flex: 1;
			height: 100%;
			padding-bottom: 20px;

			.city-group {
				padding-left: 15px;

				.group-title {
					height: 30px;
					line-height: 30px;
					font-size: 12px;
					color: #999;
					background-color: #fff;
					padding-left: 15px;
					margin-right: 15px;
				}

				.city-item {
					height: 45px;
					line-height: 45px;
					font-size: 15px;
					color: #333;

					padding-left: 15px;
					margin-right: 15px;

					&.active {
						color: #00b42a;
						position: relative;

						&::after {
							content: '✓';
							position: absolute;
							right: 15px;
							font-size: 16px;
						}
					}

					&:last-child {
						border-bottom: none;
					}
				}
			}
		}

		// 字母索引样式
		.letter-index {
			position: absolute;
			right: 5px;
			top: 50%;
			transform: translateY(-50%);
			display: flex;
			flex-direction: column;
			align-items: center;
			padding: 5px 0;
			background-color: rgba(255, 255, 255, 0.95);
			border-radius: 15px;
			z-index: 10;
			box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
			backdrop-filter: blur(10px);

			.index-item {
				height: 20px;
				line-height: 20px;
				font-size: 12px;
				color: #666;
				margin: 1px 6px;
				padding: 0 6px;
				min-width: 16px;
				text-align: center;
				border-radius: 10px;
				transition: all 0.2s ease;
				cursor: pointer;

				&:hover {
					background-color: #f0f0f0;
					color: #00b42a;
					font-weight: bold;
				}

				&:active {
					background-color: #00b42a;
					color: white;
					font-weight: bold;
					transform: scale(1.1);
				}
			}
		}
	}
}